package jonggyuni.basic;

public class GuGu7Dan {

	public static void main(String[] args) {
		//구구단 7단 출력
		// 7 x 1 = 7
		// 7 x 2 = 14
		// ......
		// 7 x 9 = 63
		
		// 출력 형태 1
		
		System.out.println("7 x 1 = 7");
		System.out.println("7 x 2 = 14");
		System.out.println("7 x 3 = 21");
		System.out.println("");
		
		// 출력 형태 2
		System.out.println("7 x 1 = " + (7*1));
		System.out.println("7 x 2 = " + (7*2));	
		System.out.println("");
		
		// 출력형태 3
		int i;
		i = 7;
		System.out.println(i +" x 1 = " + (i*1));
		System.out.println(i +" x 2 = " + (i*2));
		System.out.println(i +" x 3 = " + (i*3));
		System.out.println(i +" x 4 = " + (i*4));	
		System.out.println(i +" x 5 = " + (i*5));
		System.out.println(i +" x 6 = " + (i*6));	
		System.out.println(i +" x 7 = " + (i*7));
		System.out.println(i +" x 8 = " + (i*8));
		System.out.println(i +" x 9 = " + (i*9));

	
		
//		int n, i;
//		
//		n = 7;
//		for(i = 1; i < 10; i++){
//			System.out.println( n +" x "+ i + " = " + ( n*i ));
//		}
	}

}
